package com.yfqy.app.domain.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户资金流水记录
 */
@Data
public class CustomerFundAccountRecord {
    /**
     * 流水ID
     */
    private Long id;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 账户ID
     */
    private Long accountId;

    /**
     * 流水类型：1-收入，2-支出，3-冻结，4-解冻
     */
    private Byte flowType;

    /**
     * 变动金额
     */
    private BigDecimal amount;

    /**
     * 变动前余额
     */
    private BigDecimal beforeBalance;

    /**
     * 变动后余额
     */
    private BigDecimal afterBalance;

    /**
     * 业务类型：order_income, withdrawal, refund等
     */
    private String businessType;

    /**
     * 业务ID
     */
    private String businessId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createdTime;
}